package com.hzeport.bgs22emduty.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EMDU_ERR_LOG")
@ApiModel(value = "报错信息记录表")
public class ErrLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务器名")
    @TableField(value = "SERVER_NAME")
    @JsonProperty(value = "serverName")
    private String serverName;

    @ApiModelProperty(value = "服务器ip地址")
    @TableField(value = "SERVER_IP")
    @JsonProperty(value = "serverIP")
    private String serverIP;

    @ApiModelProperty(value = "客户端名")
    @TableField(value = "CLIENT_NAME")
    @JsonProperty(value = "clientName")
    private String clientName;

    @ApiModelProperty(value = "客户端ip地址")
    @TableField(value = "CLIENT_IP")
    @JsonProperty(value = "clientIP")
    private String clientIP;

    @ApiModelProperty(value = "应用项目名称")
    @TableField(value = "NAME")
    @JsonProperty(value = "name")
    private String name;

    @ApiModelProperty(value = "关键环节名称")
    @TableField(value = "SECTION_NAME")
    @JsonProperty(value = "sectionName")
    private String sectionName;

    @ApiModelProperty(value = "业务单证号")
    @TableField(value = "RECORD_ID")
    @JsonProperty(value = "recordID")
    private String recordID;

    @ApiModelProperty(value = "错误信息")
    @TableField(value = "ERR_MSG")
    @JsonProperty(value = "errMsg")
    private String errMsg;

    @ApiModelProperty(value = "报错时间")
    @TableField(value = "ERR_TIME")
    @JsonProperty(value = "errTime")
    private LocalDateTime errTime;
}
